package com.mobile.paperazi.data;

import android.os.Parcel;
import android.os.Parcelable;

public class Content implements Parcelable {
	
	private String url;
	private String type;
	private String title;
	private String description;
	
	public Content() {
	}
	
	private Content(Parcel in) {
		String[] data = new String[4];

        in.readStringArray(data);
        this.url = data[0];
        this.type = data[1];
        this.title = data[2];
        this.description = data[3];
    }

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public static final Parcelable.Creator<Content> CREATOR =
            new Parcelable.Creator<Content>() {

        @Override
        public Content createFromParcel(Parcel source) {
            return new Content(source);
        }

        @Override
        public Content[] newArray(int size) {
            return new Content[size];
        }

    };
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeStringArray(new String[] {this.url,
                this.type,
                this.title, this.description});
		
	}
}
